package com.example.study.manager_plus.mybatis_plus.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.study.manager_plus.mybatis_plus.entity.CameraInfo;
import com.example.study.manager_plus.mybatis_plus.mapper.CameraInfoMapper;
import com.example.study.manager_plus.mybatis_plus.service.CameraInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 网络摄像头品类信息 服务实现类
 * </p>
 *
 * @author 路飞4
 * @since 2024-06-18
 */
@Service
public class CameraInfoServiceImpl extends ServiceImpl<CameraInfoMapper, CameraInfo> implements CameraInfoService {

    @Override
    public int saveData(CameraInfo cameraInfo) {
        return baseMapper.insert(cameraInfo);
    }

    @Override
    public List<CameraInfo> queryAllData() {
        QueryWrapper<CameraInfo> queryWrapper=new QueryWrapper<>();
        return baseMapper.selectList(queryWrapper);
    }
}
